// ToExcel.h: interface for the CToExcel class.
//
#include "SpecMakeDlg.h"
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TOEXCEL_H__31E6D66D_5A60_4184_AE5B_3304F8BBA3D5__INCLUDED_)
#define AFX_TOEXCEL_H__31E6D66D_5A60_4184_AE5B_3304F8BBA3D5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CToExcel  
{
public:
	void ToExcel(BOOL bIsAll);
	CToExcel();
	CToExcel( CSpecMakeDlg * pMainDlg );
	virtual ~CToExcel();
	BOOL MakeGjTempTable(CString strType,CString strSpecKey=_T(""),BOOL bIsAll=true);
	BOOL MakeSpecTempTable(CString strType,CString SetGradeKey="",CString strSpecKey="",BOOL bIsAll=true);
	void DeleteGjTempTable();
	void DeleteSpecTempTable();

private:
	long m_nPos;
	CSpecMakeDlg * m_pMainDlg;
	BOOL GetRs(_RecordsetPtr &pRs,CString strRs);
	CString GetType(CString &strGj);
	BOOL OpenConnection();
	_ConnectionPtr m_pConn;
	_ConnectionPtr m_pIndexConn;
	BOOL OpenIndexTable(CString strType,CString strDataFromMdb,long nID,_RecordsetPtr & pRs);
};

#endif // !defined(AFX_TOEXCEL_H__31E6D66D_5A60_4184_AE5B_3304F8BBA3D5__INCLUDED_)
